var builder = WebApplication.CreateBuilder(args);

builder.Services.AddHealthChecksUI(setup => setup.DisableDatabaseMigrations())
    .AddMySqlStorage("server=114.115.164.191;port=3306;Initial Catalog=youAdminDB;user id=root;password=123.com;Charset=utf8");

var app = builder.Build();

app
    .UseRouting()
    .UseEndpoints(config => config.MapHealthChecksUI());

app.MapGet("/", () => "Hello World!");

app.Run();